const {
  override,
  addDecoratorsLegacy,
  disableEsLint,
  addBundleVisualizer,
  addWebpackAlias,
  adjustWorkbox 
} = require("customize-cra");
const path = require("path");
 
module.exports = override(
  // enable legacy decorators babel plugin
//   addDecoratorsLegacy(),
 
  // disable eslint in webpack
  // 禁用eslint语法监测
  disableEsLint(),
 
  // add webpack bundle visualizer if BUNDLE_VISUALIZE flag is enabled
//   process.env.BUNDLE_VISUALIZE == 1 && addBundleVisualizer(),
 
  // add an alias for "ag-grid-react" imports
  // 配置路径别名
  addWebpackAlias({
    ["@"]: path.resolve(__dirname, "src")
  }),
 

);